<!DOCTYPE html>
<html>
<head>
    <title>异常页面</title>
    <meta charset="UTF-8">
    <style>
        body{
            margin: 0px;
            padding: 0px;
            background: url(/static/images/404bg.jpg) repeat;
            font-size: 12px;
            overflow: hidden;
        }

        #container{
            width: 832px;
            height: 493px;
            margin-left: auto;
            margin-right: auto;
            background: url(/static/images/404.png) no-repeat;
            padding-top: 280px;
        }

        #errorInfo{
            width: 400px;
            color: #FFFFFF;
            font-size: 18px;
            font-weight: bold;
            font-family: "黑体",Arial;
            padding-left: 366px;
        }
    </style>

    <script>

        /**
         * 获取浏览器的URL参数
         * @param name
         * @returns {*}
         */
        var getUrlParam = function(name){
            var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
            var r = window.location.search.substr(1).match(reg);  //匹配目标参数
            if (r!=null) return decodeURI(r[2]); return null; //返回参数值
        };

        var init = function(){
            var msg = getUrlParam("msg");
            if(msg == undefined || msg == null || msg.length == 0){
                msg = "对不起，没有找到相应的内容。"
            }
            document.getElementsByName("errorInfo")[0].innerHTML = msg;
        }
    </script>
</head>
<body onload="init()">
    <div id="container">
        <div id="errorInfo" name="errorInfo"></div>
    </div>
</body>
</html>